home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 176-200 / disk_184 / world / makefile < prev    next >
Makefile  |  1992-05-06  |  2KB  |  79 lines

  1. # Makefile for world and support programs for Amiga
  2. #
  3. # Compiled with Manx 3.4a
  4. #
  5. # The program has been tested and compiles and runs properly on the
  6. # following systems:
  7. # 1)  VAX/VMS Digital CC compiler. No particular tricks are needed.
  8. # 2)  IBM PC-AT Xenix 1.00. It eems to be necessary to use the large
  9. #     memory model, although I'm not sure why since it runs on the
  10. #     same machine under DOS in the small model.
  11. # 3)  IBM PC under Microsoft C version 4.00. It works in the default
  12. #     small memory model if you compile with the -Os switch. Note
  13. #     that on this setup you MUST link the main program World with
  14. #     binmode.obj, provided by Microsoft, for it to work right.
  15. #     Vtxtcn and vcnvrt must NOT be lined with binmode.obj.
  16. #     This compiler generates a few harmless warning messages.
  17. #     You may need to use EXEMOD to increase the stack size.
  18. # 4)  VAX/4.3bsd Unix. No particular tricks needed.
  19. #
  20. # NOTE: Edit helper.c to adjust the pathname for q1text.dat for
  21. # your particular system.
  22. #
  23.  
  24. WHEADERS = arrays.h variab.h
  25. WOBJS = demons.o helper.o motion.o parser.o verbs1.o verbs2.o world.o wbstuff.o
  26. CSRC = demons.c helper.c motion.c parser.c verbs1.c verbs2.c world.c wbstuff.c
  27. LNFLAGS = -o world -lm -lc
  28. CFLAGS = +fi -DAMIGA
  29. DEST = dh0:rec/world
  30.  
  31.  
  32. all:    world
  33.  
  34.  
  35. $(WOBJS): $(WHEADERS) convert
  36.  
  37.  
  38. vtext.dat:
  39.     join vtext.dat.aa vtext.dat.ab vtext.dat.ac AS vtext.dat 
  40.  
  41.  
  42. convert:    vcnvrt vtxtcn vtext.dat
  43.     @echo "creating data files..."
  44.     vtxtcn
  45.     vcnvrt
  46.     @type nil: TO convert
  47. # the 'type nil: to convert' stuff is a kludge.  Manx 'touch' won't create a
  48. # file if it doesn't exist.
  49.  
  50. vtxtcn:    vtxtcn.o
  51.     ln vtxtcn.o -lc
  52.  
  53. vcnvrt: vcnvrt.o
  54.     ln vcnvrt.o -lc
  55.  
  56. zoo:  readme world world.info q1text.dat q1text.dat.info readme.info
  57.     -delete world.zoo
  58.     zoo a world world world.info q1text.dat README q1text.dat.info readme.info
  59.  
  60. zoosrc: readme $(CSRC) $(WHEADERS) vtext.dat.aa vtext.dat.ab vtext.dat.ac\
  61.         vocab.dat vtxtcn.c vcnvrt.c 
  62.     -delete worldsrc.zoo
  63.     zoo a worldsrc $(CSRC) $(WHEADERS) vtext.dat.aa vtext.dat.ab vtext.dat.ac\
  64.          data.dat vocab.dat vtxtcn.c vcnvrt.c makefile.old makefile readme
  65.  
  66. clean:
  67.     delete #?.o
  68.  
  69. install:     world q1text.dat
  70.     copy world $(DEST)
  71.     copy q1text.dat $(DEST)
  72.     copy world.info $(DEST)
  73.     copy q1text.dat.info $(DEST)
  74.  
  75.  
  76. world:    $(WOBJS) convert
  77.     ln $(WOBJS) $(LNFLAGS) 
  78.